# include "myHeader.h"

void moveTurtoise(char *path, char **Turtoise, char *Hare){
	//Declaring a no. to use to return after calling random generator
	int random1;
	
	//Radomly gnerating to see how many spaces the turtoise will move
	random1 = rand()%3;
	
	//Since above statement returns value 0-2 and we want values 1-3 adding 1
	random1++;
	
	//This if and else statement is to see if the place where turtoise is moving is where
	//the hare is if it is where the hare is then turtoise moves to the previos
	//space in path.
	if((*Turtoise + random1) != Hare)
		*Turtoise += random1;
	else
		*Turtoise += (random1-1);
}